package com.hst.web.base.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_contractor_info")
@Comment("承包商信息表")
@HSID(length = 10, prefix = "C", resetByDay = true)
public class TContractorInfo extends BaseEntity {

	@Id
	@Column(name = "contractor_code", length = 20)
	@Comment("承包商编号")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String contractorCode;

	@Column(name = "contractor_name", length = 100, nullable = false)
	@Comment("承包商名称")
	private String contractorName;

	@Column(name = "credit_code", length = 50, nullable = false)
	@Comment("社会信用代码")
	private String creditCode;

	@Column(name = "address", length = 100)
	@Comment("地址")
	private String address;

	@Column(name = "transportcert", length = 100)
	@Comment("单位运输证照片")
	private String transportCert;
	
	@Column(name = "v_rdtransport_img", length = 100)
	@Comment("车辆道路运输证照片")
	private String vrdtransportImg;

	@Column(name = "totalscore")
	@Comment("累积扣分")
	private BigDecimal totalscore;

	@Column(name = "problem_num")
	@Comment("问题数量")
	private BigDecimal problemNum;

	@Column(name = "confirmflag", columnDefinition = "VARCHAR2(1) DEFAULT '0' NOT NULL")
	@Comment("2 已确认1待确认0  新建 default 0")
	private String confirmflag = "0";

	public String getVrdtransportImg() {
		return vrdtransportImg;
	}

	public void setVrdtransportImg(String vrdtransportImg) {
		this.vrdtransportImg = vrdtransportImg;
	}

	public String getContractorCode() {
		return contractorCode;
	}

	public void setContractorCode(String contractorCode) {
		this.contractorCode = contractorCode;
	}

	public String getContractorName() {
		return contractorName;
	}

	public void setContractorName(String contractorName) {
		this.contractorName = contractorName;
	}

	public String getCreditCode() {
		return creditCode;
	}

	public void setCreditCode(String creditCode) {
		this.creditCode = creditCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTransportCert() {
		return transportCert;
	}

	public void setTransportCert(String transportCert) {
		this.transportCert = transportCert;
	}

	public BigDecimal getTotalscore() {
		return totalscore;
	}

	public void setTotalscore(BigDecimal totalscore) {
		this.totalscore = totalscore;
	}

	public BigDecimal getProblemNum() {
		return problemNum;
	}

	public void setProblemNum(BigDecimal problemNum) {
		this.problemNum = problemNum;
	}

	public String getConfirmflag() {
		return confirmflag;
	}

	public void setConfirmflag(String confirmflag) {
		this.confirmflag = confirmflag;
	}
}
